using System;
using System.Collections.Generic;
using System.Text;
using Layout;

namespace CSDesktopUsiXMLRenderer
{
    class ElementsParser
    {

        public Boolean parseBoolean(String boolean)
        {
            if (boolean == "true")
            {
                return true;
            }
            else if (boolean == "false")
            {
                return false;
            }

            return false;
        }


        public FlowLayout.Alignment parseFlowLayoutAlignment(String alignment)
        {
            if (alignment == "left")
            {
                return FlowLayout.Alignment.Left;
            }
            else if (alignment == "right")
            {
                return FlowLayout.Alignment.Right;
            }
            else if (alignment == "center")
            {
                return FlowLayout.Alignment.Center;
            }

            return FlowLayout.Alignment.Center;

        }

    }
}
